-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for authorizers #846
Conversation
require.NoError(t, err, "Unexpected remove authorizer failure", strings.Join(output, "\n")) | ||
t.Logf("remove authorizer: %s zcnsc successfully", auth2.ID) | ||
|
||
// add back the first removed authorizer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case according to smart contracts logic, the first authorizer will be added again, not the one with index 0. It does not affect actual logic here, but this comments may be confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure what the index 0 do you mean here, but what I'm intend to say is the index 0 of auths
defined above. Anyway, rephrased the comment, hope it is clearer now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can associate these test cases into one file regarding authorizer tests
Related PRs:
--silent
zwalletcli#302